.class public Lcom/estrongs/android/ui/dialog/d1;
.super Lcom/estrongs/android/ui/dialog/q;
.source "WebSearchDialog.java"


# direct methods
.method public static a(Lcom/estrongs/android/pop/view/FileExplorerActivity;Lcom/estrongs/android/view/FileGridViewWrapper;)V
    .locals 13

    .line 1
    invoke-virtual {p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->x()Ljava/util/List;

    move-result-object v0

    .line 2
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_12

    const-string v2, "document"

    const-string v3, "video"

    const-string v4, "music"

    const-string v5, "image"

    const-string v6, "apk"

    const/4 v7, 0x0

    const-string v8, "all"

    const/4 v9, 0x1

    if-ne v1, v9, :cond_a

    .line 3
    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 4
    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/fs/l;->b()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 5
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object p1

    goto/16 :goto_8

    .line 6
    :cond_0
    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->z(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 7
    invoke-static {v1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_1

    instance-of v9, p1, Les/kx;

    if-eqz v9, :cond_1

    const v1, 0x7f110041

    .line 8
    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 9
    :cond_1
    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v9

    .line 10
    invoke-static {v9}, Lcom/estrongs/android/util/n0;->d(I)Z

    move-result v10

    if-nez v10, :cond_9

    instance-of v10, p1, Lcom/estrongs/android/view/l;

    if-eqz v10, :cond_2

    goto :goto_2

    .line 11
    :cond_2
    invoke-static {v9}, Lcom/estrongs/android/util/n0;->p(I)Z

    move-result v6

    if-nez v6, :cond_8

    instance-of p1, p1, Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    if-eqz p1, :cond_3

    goto :goto_1

    .line 12
    :cond_3
    invoke-static {v9}, Lcom/estrongs/android/util/n0;->e(I)Z

    move-result p1

    if-eqz p1, :cond_4

    move-object p1, v1

    goto/16 :goto_6

    .line 13
    :cond_4
    invoke-static {v9}, Lcom/estrongs/android/util/n0;->E(I)Z

    move-result p1

    if-eqz p1, :cond_5

    move-object p1, v1

    goto/16 :goto_7

    .line 14
    :cond_5
    invoke-static {v9}, Lcom/estrongs/android/util/n0;->D(I)Z

    move-result p1

    if-nez p1, :cond_7

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/n0;->m(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_6

    goto :goto_0

    :cond_6
    move-object p1, v1

    goto/16 :goto_8

    :cond_7
    :goto_0
    move-object p1, v1

    goto/16 :goto_9

    :cond_8
    :goto_1
    move-object p1, v1

    goto :goto_5

    :cond_9
    :goto_2
    move-object p1, v1

    goto :goto_4

    .line 15
    :cond_a
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const/4 v11, 0x0

    :goto_3
    add-int/lit8 v12, v1, -0x1

    if-ge v11, v12, :cond_b

    .line 16
    invoke-interface {v0, v11}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v12

    check-cast v12, Lcom/estrongs/fs/g;

    invoke-interface {v12}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Lcom/estrongs/android/util/h0;->z(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v10, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v12, " "

    invoke-virtual {v10, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v11, v11, 0x1

    goto :goto_3

    .line 17
    :cond_b
    invoke-interface {v0, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->z(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v10, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 18
    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    .line 19
    instance-of v1, p1, Lcom/estrongs/android/view/l;

    if-eqz v1, :cond_c

    move-object p1, v0

    :goto_4
    move-object v2, v6

    goto :goto_9

    .line 20
    :cond_c
    instance-of v1, p1, Lcom/estrongs/android/view/ImageFileGridViewWrapper;

    if-eqz v1, :cond_d

    move-object p1, v0

    :goto_5
    move-object v2, v5

    goto :goto_9

    .line 21
    :cond_d
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->D1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_e

    move-object p1, v0

    :goto_6
    move-object v2, v4

    goto :goto_9

    .line 22
    :cond_e
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->z2(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_f

    move-object p1, v0

    :goto_7
    move-object v2, v3

    goto :goto_9

    .line 23
    :cond_f
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->Q0(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_10

    move-object p1, v0

    goto :goto_9

    :cond_10
    move-object p1, v0

    :goto_8
    move-object v2, v8

    .line 24
    :goto_9
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v1, 0x26

    if-le v0, v1, :cond_11

    .line 25
    invoke-virtual {p1, v7, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    .line 26
    :cond_11
    invoke-virtual {p0, v2, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_12
    return-void
.end method
